import request from '/@/utils/request';
enum Api {
	Pagecms_Part = '/api/cms_Part/page',
	Addcms_Part = '/api/cms_Part/add',
	Editcms_Part = '/api/cms_Part/update',
	Delcms_Part = '/api/cms_Part/delete',
	getcms_Part = '/api/cms_Part/getCms_Part',
}
/**获取分页 */
export const Pagecms_Part = (params?: any) =>
	request({
		url: Api.Pagecms_Part,
		method: 'post',
		data: params,
	});
// 增加
export const Addcms_Part = (params?: any) =>
	request({
		url: Api.Addcms_Part,
		method: 'post',
		data: params,
	});

/**修改 */
export const Editcms_Part = (params?: any) =>
	request({
		url: Api.Editcms_Part,
		method: 'post',
		data: params,
	});
/**删除 */
export const Delcms_Part = (params?: any) =>
	request({
		url: Api.Delcms_Part,
		method: 'post',
		data: params,
	});
/**获取数据 */
export const getcms_Part = (params?: any) =>
	request({
		url: Api.getcms_Part,
		method: 'post',
		data: params,
	});
